home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / frame_44 / PlaceObject2_2213_590 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2011-06-09  |  533 b   |  24 lines

  1. onClipEvent(enterFrame){
  2.    i = 1;
  3.    while(i < 40)
  4.    {
  5.       if(this._name != "bull")
  6.       {
  7.          if(this._currentframe == 1)
  8.          {
  9.             if(_root.ravNogo.hitTest(this._x,this._y,true))
  10.             {
  11.                this.gotoAndStop(2);
  12.             }
  13.             this._x += x_speed;
  14.             this._y -= y_speed;
  15.          }
  16.       }
  17.       if(this.hitTest(_root.ravNogo["ob" + i].targ))
  18.       {
  19.          _root.ravNogo["ob" + i].hp -= 0.3 * ((_root.even9 + 1) / 1.5);
  20.       }
  21.       i++;
  22.    }
  23. }
  24.